"""
URL configuration for django2512 project.

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/5.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

"""
请求映射配置文件   
 192.168.253.153:8000/user/login       ->  views  -> 处理单元  函数      多app设计  
 192.168.253.153:8000/user/register
 
 直接将views代码写在urls.py文件中 
  1. 代码耦合   urls 映射文件  
  2. 不便于代码维护
 
 django项目中不建议直接将业务逻辑编写在项目的根路径下   推荐使用多app模式
 user  app
 role  app
 student app
"""

from django.contrib import admin
from django.urls import path, include

urlpatterns = [
    path("admin/", admin.site.urls),
    path("app01/", include("app01.urls")),  # /app01/*
    path("app02/", include("app02.urls")),  # /app02/*
    path("app03/", include("app03.urls")),  # /app03/*
    path("app04/", include("app04.urls")),  # /app04/*
    path("app05/", include("app05.urls")),
    path("app06/", include("app06.urls")),
    path("app07/", include("app07.urls")),
    path("app08/", include("app08.urls")),
]
